package domain

import "time"

const (
	GormLogIndex = "gorm_log_record"
	HttpLogIndex = "http_log_record"
	AppLogIndex  = "app_log_record"
)

const LogMapping = `
{   
	"mappings":{
		"properties":{
			"message":{
				"type":"keyword"
			},
			"@timestamp":{
				"type":"date"
			}
		}
	}
}`

type Log struct {
	Message   string
	Timestamp time.Time `json:"@timestamp"`
}
